package com.shanzmoo.core.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 邮件发送配置
 *
 * @author fs
 */
@Data
@Component
@ConfigurationProperties(prefix = "mail")
public class MailProperties {
    /**
     * 邮箱
     * */
    private String user;
    /**
     * 密码
     */
    private String pass;
    /**
     * smtp地址
     */
    private String host;
    /**
     * smtp端口
     */
    private Integer port;

    /**
     * 是否需要ssl
     */
    private Boolean ssl;
}
